<?php
$user_mobile = 15823044918;
echo str_replace(mb_substr(mb_substr($user_mobile, 3,5,'utf-8'), 4,8,'utf-8'), '****', $user_mobile);

$orderId = 8;

require $_SERVER['DOCUMENT_ROOT'] . '/vendor/' . 'JpushSend.class.php';

$receive['alias'][] = $user_mobile;

$chattitle = '新信息';
$content = '您有新的订单';
$content = $chattitle . ":" . $content;
$fetion = new JpushSend();
$m_type = 'paotui';
$m_txt = array('orderId' => $orderId);
$m_time = '600'; //默认

$res = $fetion->sendPub($receive, $content, $m_type, $m_txt, $m_time);
echo $res;
